package com.wkbb.sports.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author lbh
 * @date 2021年03月29日 17:58:34
 * @description: hlife_work_student_history  作业历史记录表
 *
 *
 * 在提交作业的接口里面，前端偷懒没有重新组装数据，直接提交了下面这个json串到后台：
 * {
 *     "achivement": 3,
 *     "actualTime": 3,
 *     "classId": "1",
 *     "className": "九年级(1)班",
 *     "duration": "3sec",
 *     "gradeId": "1",
 *     "gradeName": "九年级",
 *     "headImgUrl": "http://art-dev-oss2.oss-cn-beijing.aliyuncs.com/6b13c9d2f72e224e72f3d4dbb48b0dcc.jpeg?Expires=1932708996&OSSAccessKeyId=LTAI4Fv4oaSnQg82bSya9bf6&Signature=k0LhunkfvjGNGi8sQ9fXDLQWPz0%3D",
 *     "orgId": "1",
 *     "projectId": "0",
 *     "projectName": "项目名称1",
 *     "reached": "1",
 *     "remark": "备注",
 *     "sex": "1",
 *     "status": "0",
 *     "studentId": "1",
 *     "studentName": "张三1",
 *     "teacherName": "体育老师",
 *     "time": "2021年4月17日 14:20前",
 *     "total": "3",
 *     "totalTime": 3,
 *     "userNo": "111",
 *     "workId": "1",
 *     "workStudentId": "1"
 * }
 *
 * 实际上只需要提交：
 * {
 *     "achivement": 3,
 *     "actualTime": 3,
 *     "classId": "1",
 *     "className": "九年级(1)班",
 *     "gradeId": "1",
 *     "gradeName": "九年级",
 *     "headImgUrl": "http://art-dev-oss2.oss-cn-beijing.aliyuncs.com/6b13c9d2f72e224e72f3d4dbb48b0dcc.jpeg?Expires=1932708996&OSSAccessKeyId=LTAI4Fv4oaSnQg82bSya9bf6&Signature=k0LhunkfvjGNGi8sQ9fXDLQWPz0%3D",
 *     "orgId": "1",
 *     "projectId": "0",
 *     "sex": "1",
 *     "status": "0",
 *     "studentId": "1",
 *     "studentName": "张三1",
 *     "userNo": "111",
 *     "workId": "1",
 *     "workStudentId": "1"
 * }
 *
 *
 * 多提交了8个不需要的无关参数：
 * {
 *     "duration": "3sec",
 *     "projectName": "项目名称1",
 *     "reached": "1",
 *     "remark": "备注",
 *     "teacherName": "体育老师",
 *     "time": "2021年4月17日 14:20前",
 *     "total": "3",
 *     "totalTime": 3
 * }
 */
@Data
public class HlifeWorkStudentHistory extends BaseEntity{

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "学生作业ID")
    private Long workStudentId;

    @ApiModelProperty(value = "项目ID")
    private Byte projectId;

    @ApiModelProperty(value = "学校ID")
    private Long orgId;

    @ApiModelProperty(value = "年级ID")
    private Long gradeId;

    @ApiModelProperty(value = "年级名称")
    private String gradeName;

    @ApiModelProperty(value = "班级ID")
    private Long classId;

    @ApiModelProperty(value = "学生头像地址")
    private String headImgUrl;

    @ApiModelProperty(value = "班级名称")
    private String className;

    @ApiModelProperty(value = "学生ID")
    private Long studentId;

    @ApiModelProperty(value = "学生名称")
    private String studentName;

    @ApiModelProperty(value = "性别(1男,2女)")
    private Byte sex;

    @ApiModelProperty(value = "成绩")
    private Double achivement;

    @ApiModelProperty(value = "得分")
    private Double score;

    @ApiModelProperty(value = "加分项得分")
    private Double plusesScore;

    @ApiModelProperty(value = "实际时长(单位：秒)")
    private Integer actualTime;

    @ApiModelProperty(value = "状态(0未开始 1进行中2已结束3已取消)")
    private Integer status;

    @ApiModelProperty(value = "是否达标(0未达标/1已达标)")
    private Integer reached;

    @ApiModelProperty(value = "工号或学号")
    private String userNo;

    @ApiModelProperty(value = "模式(1模拟考试 2限时限数 3数量模式 4时间模式)")
    private Integer modelType;

    //==================dto字段===不对应数据库表任何字段========================================

    @ApiModelProperty(value = "作业ID【dto字段】")
    private Long workId;


}
